package com.winsdom.exception;

import lombok.Getter;
import org.springframework.http.HttpStatus;
import org.springframework.web.multipart.MultipartFile;

@Getter
public class ExcelException extends RuntimeException{

    private int stausCode;

    private MultipartFile file;

    public ExcelException() {
    }

    public ExcelException(String message, HttpStatus status) {
        super(message);
        stausCode = status.value();
    }

    public ExcelException(String message, HttpStatus status, MultipartFile file) {
        super(message);
        stausCode = status.value();
        this.file = file;
    }
}
